package com.albaba.designpattern.factory.text_003.service.impl;

import com.albaba.designpattern.factory.text_003.entity.AwardInfo;
import com.albaba.designpattern.factory.text_003.entity.ResponseResult;
import com.albaba.designpattern.factory.text_003.service.IFreeGoods;

/**
 * @Description: 优酷会员
 * @Author zx
 * @Date 2025/2/19 10:42
 * @Version 1.0
 */
public class YouKuMemberFreeGoodServiceImpl implements IFreeGoods {



    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        String phone = awardInfo.getExtMap().get("phone");
        System.out.println("向用户发送一张优酷会员卡：" + phone);

        return new ResponseResult("200", "发放优酷会员成功", null);
    }
}
